﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SaturniLibrary.Cache
{
    public class DictonaryCache : CacheBase
    {
        private static Dictionary<string, DictonaryCacheAPI> container = new Dictionary<string, DictonaryCacheAPI>(StringComparer.OrdinalIgnoreCase);

        protected override ICacheAPI GetCacheApi(string groupName)
        {
            if (!container.ContainsKey(groupName))
            {
                container.Add(groupName, new DictonaryCacheAPI());
            }
            return container[groupName];
        }
    }
}
